
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 
 
<head> 
	<script src="jquery-1.4.2.min.js" type="text/javascript"></script>
	<script src="taaask.js"></script>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
  <title>Highrise: Tasks</title> 


<link type="text/css" rel="stylesheet" href="../../style/Public.css" />
  <link href="../../style/all.css" media="screen" rel="stylesheet" type="text/css" /> 
  <link href="../../style/application.css" media="print" rel="stylesheet" type="text/css" /> 
  <!--[if IE]><link href="https://d1a993iq9azmzq.cloudfront.net/rev_b499db4//stylesheets/ie/base.css" media="screen" rel="stylesheet" type="text/css" /><![endif]--> 
  <link href="../../style/blue.css" media="screen" rel="stylesheet" title="Theme" type="text/css" /> 
  <link href="../../style/taaask.css" rel="stylesheet" type="text/css"/>
  <link href="../../style/Public.css" rel="stylesheet" type="text/css"/>
  
	<script src="../../js/taaask.js"></script>
	<link rel="stylesheet" href="../../style/auto/jquery.ui.all.css">
	<script src="../../js/jquery-1.4.2.min.js"></script>
  <noscript><style type="text/css">#app_header, div.wrapper { display: none }</style></noscript> 
  
</head> 
 
<body class="clearfix upcoming tasks narrow_page_with_sidebar_outside webkit  windows"  onload="" style="background-color:#F3F1EC"> 
  
 
  
 
 
  <div id="quick_show_window" style="display: none"> 
    <div class="quick_show_window_position"> 
      <div class="quick_show_window_wrapper"> 
        <div class="quick_show_window_content"> 
        </div> 
      </div> 
    </div> 
  </div> 
 
  <div id="task_flash" style="display: none"> 
    <div class="inner_task_flash"> 
    </div> 
  </div> 
 
  <noscript> 
  <div class="javascript_disabled_notification">
    <div class="inner">
      <h1>You need to change a setting in your web browser</h1>
      <p>Highrise requires a browser feature called <strong>JavaScript</strong>. All modern browsers support JavaScript. You probably just need to change a setting in order to turn it on.</p>
 
      <p>Please see: <a href="http://www.google.com/support/bin/answer.py?answer=23852">How to enable JavaScript in your browser</a>.</p>
 
      <p>If you use ad-blocking software, it may require you to allow JavaScript from highrisehq.com.</p>
 
      <p>Once you've enabled JavaScript you can <a href="">try loading this page again</a>.</p>
 
      <p>Thank you.</p>
    </div>
  </div>
</noscript> 
 
 
	<div id="app_header"> 
	<div class="background"></div> 
	<div class="boundary"> 
		
		  <div id="upgrade_bar"> 
		    <a href="/account" behavior="return_to">Upgrade your free account</a> 
		    to manage additional contacts, upload files, invite more users, and get more out of Highrise.
		  </div> 
		
 
		<div id="inner_header_wrapper"> 
			<a href="/" id="app_logo"><img alt="Logo-topleft" src="images/logo-topleft.png" style="padding-top: 8px;" /></a> 
 
			<table id="page_actions"> 
				<tr> 
					<td class="tiny"> 
						<div class="menu_container"> 
							
								<span class="action"><a href="/people/new" behavior="return_to"><span>添加联系人</span></a></span> 
	            	
						</div> 
					</td> 
					<td class="tiny"> 
						<div class="menu_container"> 
							<span class="action"><a href="#" behavior="new_task_button" class="menu_target"><span>增加公司</span></a></span> 
							<div id="balloon_new_task" class="balloon left menu_content task_form_balloon"> 
  <!-- balloon pointer --> 
  <div class="balloon_pointer"> 
    <div class="balloon_arrow menu_target"></div> 
    <div class="balloon_arrow_border"></div> 
  </div> 
  
  <!-- balloon content --> 
  <div class="balloon_wrapper"> 
    
    
 
    <div class="balloon_content"> 
      
<div class="new_task"> 
  <form action="/tasks" class="new_task" id="form_task" method="post" onsubmit="$(this).addClassName('busy'); new Ajax.Request('/tasks', {asynchronous:true, evalScripts:true, parameters:Form.serialize(this)}); return false;"><div style="margin:0;padding:0;display:inline"><input name="authenticity_token" type="hidden" value="o4Fdt8+/9jm07a1S0z9hIQaVK5gljM9kVBTEXwafSNc=" /></div> 
    
    
 
    <div id="form_body_task" class="task_form"> 
 
  <input id="from" name="from" type="hidden" value="tasks" /> 
<input id="collection" name="collection" type="hidden" value="upcoming" /> 
 
  <div class="new_task"> 
    <h3>Add a new task</h3> 
  
    <p class="task_body"> 
      <input class="autofocus" id="body_task" name="task[body]" size="30" type="text" /> 
    </p> 
 
    <div id="controls_task" class="controls"> 
      <h5>When's it due?</h5> 
      <p> 
        <select name="task[frame]" onchange="Tasks.changeFrame(this)"><option params="{&quot;task[due_at][am_pm]&quot;:&quot;pm&quot;,&quot;task[due_at][date]&quot;:&quot;2011-06-18&quot;,&quot;task[due_at][minute]&quot;:&quot;30&quot;,&quot;task[due_at][hour]&quot;:&quot;1&quot;}" selected="selected" value="today">Today</option><option params="{&quot;task[due_at][am_pm]&quot;:&quot;am&quot;,&quot;task[due_at][date]&quot;:&quot;2011-06-19&quot;,&quot;task[due_at][minute]&quot;:&quot;00&quot;,&quot;task[due_at][hour]&quot;:&quot;9&quot;}" value="tomorrow">Tomorrow</option><option params="{&quot;task[due_at][am_pm]&quot;:&quot;am&quot;,&quot;task[due_at][date]&quot;:&quot;2011-06-19&quot;,&quot;task[due_at][minute]&quot;:&quot;00&quot;,&quot;task[due_at][hour]&quot;:&quot;9&quot;}" value="this_week">This week</option><option params="{&quot;task[due_at][am_pm]&quot;:&quot;am&quot;,&quot;task[due_at][date]&quot;:&quot;2011-06-19&quot;,&quot;task[due_at][minute]&quot;:&quot;00&quot;,&quot;task[due_at][hour]&quot;:&quot;9&quot;}" value="next_week">Next week</option><option params="{&quot;task[due_at][am_pm]&quot;:&quot;am&quot;,&quot;task[due_at][date]&quot;:&quot;2011-06-19&quot;,&quot;task[due_at][minute]&quot;:&quot;00&quot;,&quot;task[due_at][hour]&quot;:&quot;9&quot;}" value="later">Later</option><option params="{&quot;task[due_at][am_pm]&quot;:&quot;am&quot;,&quot;task[due_at][date]&quot;:&quot;2011-06-19&quot;,&quot;task[due_at][minute]&quot;:&quot;00&quot;,&quot;task[due_at][hour]&quot;:&quot;9&quot;}" value="specific">Specific date/time&hellip;</option></select> 
        <span class="link_to_set_day_and_time">or <a href="#" onclick="Tasks.changeFrame($(this).up(0).previous('select'), 'specific'); return false;">Set date/time</a></span> 
      </p> 
 
      <div class="set_day_and_time"> 
        <div class="inner"> 
          <input id="calendar_task" name="task[due_at][date]" type="hidden" value="2011-06-18" /><script type="text/javascript"> 
//<![CDATA[
async("new CalendarDateSelect(\"calendar_task\", {\"id\":\"calendar_task\"});")
//]]>
</script> 
          <div class="set_task_time"> 
            at <select id="task_due_at_hour" name="task[due_at][hour]"><option value="1" selected="selected">1</option> 
<option value="2">2</option> 
<option value="3">3</option> 
<option value="4">4</option> 
<option value="5">5</option> 
<option value="6">6</option> 
<option value="7">7</option> 
<option value="8">8</option> 
<option value="9">9</option> 
<option value="10">10</option> 
<option value="11">11</option> 
<option value="12">12</option></select>:<select id="task_due_at_minute" name="task[due_at][minute]"><option value="00">00</option> 
<option value="15">15</option> 
<option value="30" selected="selected">30</option> 
<option value="45">45</option></select><select id="task_due_at_am_pm" name="task[due_at][am_pm]"><option value="am">am</option> 
<option value="pm" selected="selected">pm</option></select> 
          </div> 
        </div> 
      </div> 
 
      
 
      <h5>Choose a category</h5> 
      <p> 
        <select id="category_task" name="task[category_id]" onchange="Tasks.changeCategory(this)"><option value="" selected="selected">None</option> 
<option value="2893097">Call</option> 
<option value="2893098">Demo</option> 
<option value="2893099">Email</option> 
<option value="2893100">Fax</option> 
<option value="2893101">Follow-up</option> 
<option value="2893102">Lunch</option> 
<option value="2893103">Meeting</option> 
<option value="2893104">Ship</option> 
<option value="2893105">Thank-you</option> 
<option value="new">New category...</option></select> 
        <a href="/task_categories" behavior="return_to" class="edit_categories">Edit categories</a> 
      </p> 
    
      <p> 
        <input name="task[public]" type="hidden" value="0" /><input class="checkbox" id="public_checkbox_task" name="task[public]" type="checkbox" value="1" /> 
        <label for="public_checkbox_task">Let everyone see this task</label> 
      </p> 
    
    </div> 
  </div> 
</div> 
 
 
    <div class="submit"> 
      <p> 
        <input name="commit" type="submit" value="Add this task" /> 
        <span>or</span> 
        <a href="#" class="menu_target admin">Cancel</a> 
      </p> 
    </div> 
  </form> 
</div> 
 
    </div> 
  </div> 
</div> 
 
						</div> 
					</td> 
					<td class="long"> 
	          <div id="search_wrapper"> 
	            <div class="quick_find"> 
	              <div class="field" style="position:relative;"> 
	                <input type="text" id="sidebar_live_search" name="term"
	                  class="live_search autofocus overlayable"
	                  title="Jump to a contact, case, deal, or tag..."
	                  source="/subjects/search.json"
	                  autocomplete="off" autocorrect="off" autocapitalize="off"
	                  data-focus-priority="0" /> 
	              </div> 
	            </div> 
	          </div> 
					</td> 
				</tr> 
			</table> 
 
			<div id="global_links_container"> 
			  
			    <div class="menu_container"> 
			      <a href="#" class="name menu_target"> 
			        Account &amp; settings
			        <span></span> 
			      </a> 
			      <div id="balloon_global_links" class="balloon center menu_content "> 
  <!-- balloon pointer --> 
  <div class="balloon_pointer"> 
    <div class="balloon_arrow menu_target"></div> 
    <div class="balloon_arrow_border"></div> 
  </div> 
  
  <!-- balloon content --> 
  <div class="balloon_wrapper"> 
    
    
 
    <div class="balloon_content"> 
      <ul class="global_links"> 
  <li><a href="/users/507179/edit" behavior="return_to" class="">My info</a></li> 
  
    
      <li><a href="/users" class="">Users</a></li> 
      <li><a href="/groups" class="">Groups</a></li> 
    
    <li><a href="/custom_fields" class="">Custom Fields</a></li> 
    <li><a href="/account/settings" behavior="return_to" class="">Logo and color</a></li> 
    
      <li><a href="/account" behavior="return_to" class="">Account, upgrades, billing</a></li> 
    
  
</ul> 
 
    </div> 
  </div> 
</div> 
 
 
			    </div> 
			  
 
			  <a href="/session" onclick="var f = document.createElement('form'); f.style.display = 'none'; this.parentNode.appendChild(f); f.method = 'POST'; f.action = this.href;var m = document.createElement('input'); m.setAttribute('type', 'hidden'); m.setAttribute('name', '_method'); m.setAttribute('value', 'delete'); f.appendChild(m);var s = document.createElement('input'); s.setAttribute('type', 'hidden'); s.setAttribute('name', 'authenticity_token'); s.setAttribute('value', 'o4Fdt8+/9jm07a1S0z9hIQaVK5gljM9kVBTEXwafSNc='); f.appendChild(s);f.submit();return false;">Sign out</a> 
			  <a href="http://help.37signals.com/highrise/?e=aW5mb0BhaW0tY2hpbmEuY29t&amp;u=aHR0cHM6Ly9haW0xLmhpZ2hyaXNlaHEuY29tL3Rhc2tz&amp;n=YWltY2hpbmE%3D&amp;f=amFjayBmYW4%3D" class="help" target="_blank">Help</a> 
			</div> 
		</div> 
	</div> 
</div> 
 
 

  <div id="wrapper"> 
    <div id="inner_wrapper"> 
      <div id="main_body" class="column FRIE6" style="_float:right" > 
        
        
        
        <div id="blank_slate" class="clearfix"> 
          <div class="liner"> 
            
   <img src="images/blankslate_icon_tasks.png" width="175" height="150" alt="Tasks" /> 
 
<div class="content"> 
  <h1>Tasks help you get things done.</h1> 
  <h2>Never forget to &ldquo;Call Jim at 4pm&rdquo; or &ldquo;Fax the contract to Karen tomorrow morning.&rdquo; You can set a task for yourself or assign one to someone else. Highrise will even send an email or SMS reminder so you don&rsquo;t forget.</h2> 
  <div class="menu_container" id="new_task_container_for_page"> 
    <span class="button"><a href="#" class="menu_target"><span>Add your first task</span></a></span> 
    
<div id="balloon_new_task_per_page" class="balloon left menu_content balloon_edit_task"> 
  <!-- balloon pointer --> 
  <div class="balloon_pointer"> 
    <div class="balloon_arrow menu_target"></div> 
    <div class="balloon_arrow_border"></div> 
  </div> 
  
  <!-- balloon content --> 
  <div class="balloon_wrapper"> 
    
    
      <div id="task_flash_per_page" class="balloon_flash" style="display: none"> 
        <div class="inner_task_flash"> 
</div> 
 
      </div> 
    
 
    <div class="balloon_content"> 
      
<div class="new_task"> 
  <form action="/tasks" class="new_task" id="page_form_task" method="post" onsubmit="$(this).addClassName('busy'); new Ajax.Request('/tasks', {asynchronous:true, evalScripts:true, parameters:Form.serialize(this)}); return false;"><div style="margin:0;padding:0;display:inline"><input name="authenticity_token" type="hidden" value="o4Fdt8+/9jm07a1S0z9hIQaVK5gljM9kVBTEXwafSNc=" /></div> 
    
    <input id="parent" name="parent" type="hidden" value="page" /> 
 
    <div id="page_form_body_task" class="task_form"> 
 
  <input id="from" name="from" type="hidden" value="tasks" /> 
<input id="collection" name="collection" type="hidden" value="upcoming" /> 
 
  <div class="new_task"> 
    <h3>Add a new task</h3> 
  
    <p class="task_body"> 
      <input class="autofocus" id="page_body_task" name="task[body]" size="30" type="text" /> 
    </p> 
 
    <div id="page_controls_task" class="controls"> 
      <h5>When's it due?</h5> 
      <p> 
        <select name="task[frame]" onchange="Tasks.changeFrame(this)"><option params="{&quot;task[due_at][am_pm]&quot;:&quot;pm&quot;,&quot;task[due_at][date]&quot;:&quot;2011-06-18&quot;,&quot;task[due_at][minute]&quot;:&quot;30&quot;,&quot;task[due_at][hour]&quot;:&quot;1&quot;}" selected="selected" value="today">Today</option><option params="{&quot;task[due_at][am_pm]&quot;:&quot;am&quot;,&quot;task[due_at][date]&quot;:&quot;2011-06-19&quot;,&quot;task[due_at][minute]&quot;:&quot;00&quot;,&quot;task[due_at][hour]&quot;:&quot;9&quot;}" value="tomorrow">Tomorrow</option><option params="{&quot;task[due_at][am_pm]&quot;:&quot;am&quot;,&quot;task[due_at][date]&quot;:&quot;2011-06-19&quot;,&quot;task[due_at][minute]&quot;:&quot;00&quot;,&quot;task[due_at][hour]&quot;:&quot;9&quot;}" value="this_week">This week</option><option params="{&quot;task[due_at][am_pm]&quot;:&quot;am&quot;,&quot;task[due_at][date]&quot;:&quot;2011-06-19&quot;,&quot;task[due_at][minute]&quot;:&quot;00&quot;,&quot;task[due_at][hour]&quot;:&quot;9&quot;}" value="next_week">Next week</option><option params="{&quot;task[due_at][am_pm]&quot;:&quot;am&quot;,&quot;task[due_at][date]&quot;:&quot;2011-06-19&quot;,&quot;task[due_at][minute]&quot;:&quot;00&quot;,&quot;task[due_at][hour]&quot;:&quot;9&quot;}" value="later">Later</option><option params="{&quot;task[due_at][am_pm]&quot;:&quot;am&quot;,&quot;task[due_at][date]&quot;:&quot;2011-06-19&quot;,&quot;task[due_at][minute]&quot;:&quot;00&quot;,&quot;task[due_at][hour]&quot;:&quot;9&quot;}" value="specific">Specific date/time&hellip;</option></select> 
        <span class="link_to_set_day_and_time">or <a href="#" onclick="Tasks.changeFrame($(this).up(0).previous('select'), 'specific'); return false;">Set date/time</a></span> 
      </p> 
 
      <div class="set_day_and_time"> 
        <div class="inner"> 
          <input id="page_calendar_task" name="task[due_at][date]" type="hidden" value="2011-06-18" /><script type="text/javascript"> 
//<![CDATA[
async("new CalendarDateSelect(\"page_calendar_task\", {\"id\":\"page_calendar_task\"});")
//]]>
</script> 
          <div class="set_task_time"> 
            at <select id="task_due_at_hour" name="task[due_at][hour]"><option value="1" selected="selected">1</option> 
<option value="2">2</option> 
<option value="3">3</option> 
<option value="4">4</option> 
<option value="5">5</option> 
<option value="6">6</option> 
<option value="7">7</option> 
<option value="8">8</option> 
<option value="9">9</option> 
<option value="10">10</option> 
<option value="11">11</option> 
<option value="12">12</option></select>:<select id="task_due_at_minute" name="task[due_at][minute]"><option value="00">00</option> 
<option value="15">15</option> 
<option value="30" selected="selected">30</option> 
<option value="45">45</option></select><select id="task_due_at_am_pm" name="task[due_at][am_pm]"><option value="am">am</option> 
<option value="pm" selected="selected">pm</option></select> 
          </div> 
        </div> 
      </div> 
 
      
 
      <h5>Choose a category</h5> 
      <p> 
        <select id="page_category_task" name="task[category_id]" onchange="Tasks.changeCategory(this)"><option value="" selected="selected">None</option> 
<option value="2893097">Call</option> 
<option value="2893098">Demo</option> 
<option value="2893099">Email</option> 
<option value="2893100">Fax</option> 
<option value="2893101">Follow-up</option> 
<option value="2893102">Lunch</option> 
<option value="2893103">Meeting</option> 
<option value="2893104">Ship</option> 
<option value="2893105">Thank-you</option> 
<option value="new">New category...</option></select> 
        <a href="/task_categories" behavior="return_to" class="edit_categories">Edit categories</a> 
      </p> 
    
      <p> 
        <input name="task[public]" type="hidden" value="0" /><input class="checkbox" id="public_checkbox_task" name="task[public]" type="checkbox" value="1" /> 
        <label for="public_checkbox_task">Let everyone see this task</label> 
      </p> 
    
    </div> 
  </div> 
</div> 
 
 
    <div class="submit"> 
      <p> 
        <input name="commit" type="submit" value="Add this task" /> 
        <span>or</span> 
        <a href="#" class="menu_target admin">Cancel</a> 
      </p> 
    </div> 
  </form> 
</div> 
 
    </div> 
  </div> 
</div> 
 
 
 
  </div> 
</div> 
 
 
          </div> 
        </div> 
 
        
                <div id="screen_body"> 
        
          <!-- page sidebar --> 
          <div id="page_sidebar" style="  "> 
            <div class="liner"> 
              
  <div class="sidebox_wrapper"> 
    <div class="liner"> 
      <div class="sidebox closedbox"> 
        <h5 style="border-bottom:solid 1px #ddd">Did you know&hellip;</h5> 
        <p>You can create tasks via email by using your <a href="/users/507179/edit#email_dropbox">create-a-task-by-email</a> dropbox addresses.</p> 
        
          <div class="ical_link"> 
            <a href="/tasks/subscription">Subscribe to your iCalendar task feed</a> to see Highrise tasks on your Backpack Calendar, Apple iCal, Mozilla Calendar or other program that supports the iCalendar format.
          </div> 
        
      </div> 
    </div> 
  </div> 
 
            </div> 
          </div> 
          <!--// page sidebar --> 
        
 
        <!-- page --> 
        <div id="page"> 
 
            <!-- page header --> 
            <div id="page_header_wrapper" class="page_header" style="min-height:50px; _height:50px"> 
				<!--<h1>添加联系人<span class="fs12 m-l10">或<a href="#" class="fc0047B3 m-l10">添加联系公司</a></span></h1>-->
				<h1>知识管理</h1>
            </div> 
            <!--// page header --> 
 
            <!-- page contents --> 
			<div id="page_contents_wrapper" class="clearfix addPc padding25"> 
				<!--<ul id="cpInfo" class="add_company_info">
				<li>
					<span>姓：</span>
					<div class="">
						<input type="text" class="" />
					</div>
				</li>
				<li>
					<span>名字：</span>
					<div class="">
						<input type="text" class="" />
					</div>
				</li>
				<li>
					<span>标题：</span>
					<div class="form_field">
						<input type="text" class="hidden" />
						<p class="">添加一个标题...</p>
					</div>
				</li>
				<li>
					<span>公司：</span>
					<div class="form_field">
						<input id="cpn" type="text" class="hidden" />
						<p class="FL ">
							<span class="FL">添加一个公司...</span>
							<span class="FR ">guaiguai</span>
							<span class="FR">renmenea</span>
						</p>
					</div>	
					<ul class="cpList  ">
						<li class="cpl">123</li>
						<li>123</li>
						<li>12</li>
					</ul>				
				</li>
				<li >
					<span>电话：</span>
					<div class="form_field">
						<input type="text" class="hidden" />
						<p class="">添加一个电话...</p>
					</div>					
				</li>
				<li>
					<span>e-mail：</span>
					<div class="form_field">
						<input type="text" class="hidden" />
						<p class="">添加一个电子邮箱...</p>
					</div>
				</li>												
				<li>
					<span>网络：</span>
					<div class="form_field">
						<input type="text" class="hidden" />
						<p class="">添加一个网络联系方式...</p>
					</div>
				</li>
				<li >
					<span>网站：</span>
					<div class="form_field">
						<input type="text" class="hidden" />
						<p class="">添加一个网站地址...</p>
					</div>
				</li>	
				<li >
					<span>Twitter：</span>
					<div class="form_field">
						<input type="text" class="hidden" />
						<p class="">添加一个Twitter...</p>
					</div>
				</li>				
				<li  >
					<span>联系地址：</span>
					<div class="form_field">
						<div class="hidden">
							<textarea class="FL"></textarea>
							<select class="m-l20 FL"><option>工作地址</option><option>家庭地址</option><option>其他地址</option></select>
							<div class="clear "></div>
							<div class="m-t10">
								<input type="text"  class="FL m-r10" style="width:160px" />
								<input type="text"  class="FL m-r10" style="width:100px"/>
								<input type="text"  class="FL m-r10" style="width:98px" />
							</div>
						</div>
						<p class="">添加一个联系地址...</p>	
					</div>
				</li>	
				</ul>-->
<!--<script>
loadElement();

//var obj = window.JSON.parse('{"name":"John"}');
//var obj = jQuery.parseJSON('{"name":"John"}');
function autoSearch(){
	var n = document.getElementById("cpn");
	var cpUl = n.parentNode.parentNode.children[2];
	var addr = n.parentNode.children[1].children[1];  // the tag <span /> which show the company address
	var eMail = n.parentNode.children[1].children[2]; // the tag <span /> which show the company e-Mail
	alert(cpUl);
	n.onkeyup = function(){
		var nVal = n.value;
		$.ajax({
			url      : "",
			dataType : "json",
			data     : dt,
			success  : function( gaga ){
			    //var ifno = jQuery.parseJSON(gaga);
				var len = gaga.length;
				//var info = [];
				
				for(var i = 0; i < len; i ++){
					info = window.JSON.parse( gaga[i] );
					cpUl.innerHTML += "<li>" + info.gsname + "</li>";
				}
				getVal(gaga);          // dispatch the click event so that to get the company's address and e-mail 
			}
		});
	}
}

function getVal(gaga){
	
	addr.innerHTML = gaga;
	eMail.innerHTML = gaga;
}
autoSearch();

/*array
(
	'gsid'=>1,
	'gsname'=>'美国微软',
	'gssite'=>'',
	'gsaddress'=>''
)*/

var obj = jQuery.parseJSON('{"name":"John0"},{"name":"John1"},{"name":"John2"}');
alert( obj.name === "John" );
</script>-->
					
				<!--<ul class="add_company_info">
				<li >
					<label class="FL fc888 width37 m-t20">自定义字段</label><label class="FR fc888 width37 m-r30 m-t20">建立你的自定义字段</label>
				</li>	
				<li>
					<span>自定义 ID：</span><input type="text" class="" />
				</li>	
				<li>
					<span>自定义字段：</span><input type="text" class="" />
				</li>	
				<li>
					<span>参考自：</span><input type="text" class="" />
				</li>	
				<li>
					<label class="FB ">背景信息：</label>
					<textarea class="m-t10" style="width:96%"></textarea>
				</li>																					
				<li>
					<button class="m-r10">添加联系人</button>
					<button>取消</button>
				</li>
				</ul>-->		
				<!--知识管理内容开始-->
<style>
.inputLi{width:99%; margin:10px auto }
.inputLi label{ width:60px; height:20px; margin:5px; display:block}
.inputLi input{ width:492px; _width:498px }
.inputLi button{padding:3px 5px; line-height:16px; height:24px}
.knowledge{}
.question {}

.warehouse{}
.answerOpen{ height:30px; line-height:30px;  }
.k li{ padding:0px 10px 10px; border-bottom:solid 1px #DADEE5 }
.kTit{font-size:16px; color:#FF0000; margin:5px 0px}
.kTit P{width:95%; height:auto; overflow:hidden; color:#05569D; font-weight:bold }
.imgSwitch{float:right; width:16px; height:16px; _margin-top:-2px}
.kContent{margin:0px 20px; color:#999;}

</style>				
				<div class="knowledge width100">
					<!-- 问题提问 -->
					<div class="question width100"><form>
						<div class="inputLi autoHeight">
							<label class="FL t-r">问题题目</label>
							<input type="text"  />
							<div class="clear"></div>
						</div>
						<div class="inputLi autoHeight">
							<label class="FL t-r" >问题内容</label>
							<textarea class="FL" style="_margin-left:3px; width:500px"></textarea>
							<div class="clear"></div>
						</div>
						<div class="inputLi autoHeight">
							<label class="FL t-r" >分类</label>
							<select>
								<option>行业知识</option>
								<option>营销知识</option>
								<option>开发仓库</option>
							</select>
							<div class="clear"></div>
						</div>						
						<div class="inputLi autoHeight">
							<label class="block FL" ></label>	
							<button>提交</button>
							<div class="clear"></div>
						</div>					
					</form></div>
					<!-- 问题仓库 -->
					<div class="warehouse autoHeight">
						<div class="answerOpen btm pointer">全部展开</div>
						<ul id="KA" class="k margin10">
							<li>
								<div class="kTit">
									<P class="FL">记忆中的颜色勾起了我们的回忆，打开尘封已久的旧画具箱子</P>
									<div class="imgSwitch"><img src="../../images/022.png" width="16" height="16"  /></div>
									<div class="clear"></div>
								</div>
								<p class="kContent" style="display:none">失去了颜色的遥远的记忆
偷偷打开画箱，看见一张古老的画卷儿时的朋友一直都在那里脸上挂着不变的笑容描绘着两个人梦想的油画颜色尚未褪去我们牵着手感受曾经的温暖人啊，为什么有爱又有恨这是与生俱来来的感情吧欢喜和悲伤交织在一起是青春永恒的羁绊花的锁链 </p>
							</li>
							<li>
								<div class="kTit">
									<P class="FL">记忆中的颜色勾起了我们的回忆，打开尘封已久的旧画具箱子</P>
									<div class="imgSwitch"><img src="../../images/022.png" width="16" height="16"  /></div>
									<div class="clear"></div>
								</div>
								<p class="kContent" style="display:none">失去了颜色的遥远的记忆
偷偷打开画箱，看见一张古老的画卷儿时的朋友一直都在那里脸上挂着不变的笑容描绘着两个人梦想的油画颜色尚未褪去我们牵着手感受曾经的温暖人啊，为什么有爱又有恨这是与生俱来来的感情吧欢喜和悲伤交织在一起是青春永恒的羁绊花的锁链 </p>
							</li>
							<li>
								<div class="kTit">
									<P class="FL">记忆中的颜色勾起了我们的回忆，打开尘封已久的旧画具箱子</P>
									<div class="imgSwitch"><img src="../../images/022.png" width="16" height="16"  /></div>
									<div class="clear"></div>
								</div>
								<p class="kContent" style="display:none">失去了颜色的遥远的记忆
偷偷打开画箱，看见一张古老的画卷儿时的朋友一直都在那里脸上挂着不变的笑容描绘着两个人梦想的油画颜色尚未褪去我们牵着手感受曾经的温暖人啊，为什么有爱又有恨这是与生俱来来的感情吧欢喜和悲伤交织在一起是青春永恒的羁绊花的锁链 </p>
							</li>
							<li>
								<div class="kTit">
									<P class="FL">记忆中的颜色勾起了我们的回忆，打开尘封已久的旧画具箱子</P>
									<div class="imgSwitch"><img src="../../images/022.png" width="16" height="16"  /></div>
									<div class="clear"></div>
								</div>
								<p class="kContent" style="display:none">失去了颜色的遥远的记忆
偷偷打开画箱，看见一张古老的画卷儿时的朋友一直都在那里脸上挂着不变的笑容描绘着两个人梦想的油画颜色尚未褪去我们牵着手感受曾经的温暖人啊，为什么有爱又有恨这是与生俱来来的感情吧欢喜和悲伤交织在一起是青春永恒的羁绊花的锁链 </p>
							</li>
							<li>
								<div class="kTit">
									<P class="FL">记忆中的颜色勾起了我们的回忆，打开尘封已久的旧画具箱子</P>
									<div class="imgSwitch"><img src="../../images/022.png" width="16" height="16"  /></div>
									<div class="clear"></div>
								</div>
								<p class="kContent" style="display:none">失去了颜色的遥远的记忆
偷偷打开画箱，看见一张古老的画卷儿时的朋友一直都在那里脸上挂着不变的笑容描绘着两个人梦想的油画颜色尚未褪去我们牵着手感受曾经的温暖人啊，为什么有爱又有恨这是与生俱来来的感情吧欢喜和悲伤交织在一起是青春永恒的羁绊花的锁链 </p>
							</li>
						</ul>
					</div>
<script>
var answerGroup = document.getElementById("KA");
var nr = answerGroup.children;
var op = answerGroup.parentNode.children[0];     //全部展开按钮
//alert(an.length);
var l = nr.length;
var pool = [];
function testStatus(){
	var tm = 0;
	while( tm < l ){
		if( pool[tm].display == "none" ){
			break;
		}
		tm ++; 
	}
	if( tm < l ){
		allObj.status = "open";	
		allObj.ele.innerHTML = "全部展开";
	}else{
		allObj.status = "close";	
		allObj.ele.innerHTML = "全部关闭";
	}
}
var allObj = {
	status : "open",
	ele    : op,
	turn   : function(){
		var c = this;
		this.ele.onclick = function(){
			if( c.status == "open" ){
				for(var i = 0; i < l; i ++){
					$(pool[i].answer).slideDown("slow");
					pool[i].display = "block";
				}
				c.status = "close";
				c.ele.innerHTML = "全部关闭";
			}else{
				for(var i = 0; i < l; i ++){
					$(pool[i].answer).slideUp("slow");
					pool[i].display = "none";
				}
				c.status = "open";		
				c.ele.innerHTML = "全部展开";
			}
		}
	}
};
allObj.turn();
function showAnswer(){

	for( var i = 0; i < l; i ++ ){
		var o = {
			eleLi   : nr[i],
			swch    : nr[i].children[0].children[1],
			answer  : nr[i].children[1],
			display : nr[i].children[1].style.display,
			turn    : function(){   
				var c = this;
				this.swch.onclick = function(){
					if(c.display == "none"){
						$(c.answer).slideDown("slow");
						c.display = "block";          //感觉不需要了，但是还得加上，或许在slideDown（）函数中并没有改变其display的设置
					}else{
						$(c.answer).slideUp("slow");
						c.display = "none";
					}
					testStatus();
				};
			}
		};
		pool.push(o);
		pool[i].turn();
	}

//	op.onclick = function(){
//		for(var i = 0; i < l; i ++){
//			$(pool[i].answer).slideDown("slow");
//			
//		}
//	}
}
showAnswer();
</script>					
				</div>
            </div>
            <!--// page contents --> 
          
        </div> 
        <!--// page --> 
      </div> 
        
        <div style="margin-top: 30px"> </div>        
      </div> 
 
      <div id="global_sidebar" class="column">  
        <div class="liner">    
          <div id="global_nav"> 
  <ul> 
    
 
    <li id="dashboard"><a href="/" class="">Latest activity</a></li> 
    <li id="parties"><a href="/parties" class="">Contacts <span class='stat'>~1 person</span></a></li> 
    <li id="tasks"><a href="/tasks" class="selected">任务 <span class='stat'>23 overdue</span></a></li> 
    <li id="kases"><a href="/kases" class="">Cases <span class='stat'>none</span></a></li> 
    <li id="deals"><a href="/deals" class="">Deals <span class='stat'>1 pending</span></a></li> 
    <li id="search"><a href="/recordings/search" class="">Search notes</a></li> 
  </ul> 
</div> 
          
          <div id="recent_items"> 
  
    <hr /> 
  
    <h4>Recently viewed</h4> 
    <div class="recent_items"> 
      
        <a href="/deals/1123454" class="recent_item "> 
          <span class="sprite avatar blank_avatar deal deal_dollar" style="background: url(images/highrise_sprites.png) no-repeat -222px -162px; width: 32px; padding-top: 32px; " title="dealʲô" id="">dealʲô</span> 
          <span class="recent_name">dealʲô</span> 
          <span class="recent_desc">Deal</span> 
        </a> 
      
        <a href="/people/74844834-jack" class="recent_item "> 
          <span class="sprite avatar blank_avatar person " style="background: url(images/highrise_sprites.png) no-repeat -112px -148px; width: 32px; padding-top: 32px; " title="jack" id="">jack</span> 
          <span class="recent_name">jack</span> 
          <span class="recent_desc"></span> 
        </a> 
      
    </div> 
  
</div> 
          
        </div> 
      </div> 
    </div> 
  </div> 
 
  <hr style="display: none;" /> 
 
	<div id="preloaded_images" style="position:absolute; height:0px; overflow:hidden;"> 
		<img alt="Dots-white" src="images/dots-white.gif" /> 
		<img alt="Dots-black" src="images/dots-black.gif" /> 
	</div> 
 

<SCRIPT language=JavaScript type=text/javascript>
function correctPNG()

{

　for(var i=0; i<document.images.length; i++)

　{

　 var img = document.images[i]

　 var imgName = img.src.toUpperCase()

　 if (imgName.substring(imgName.length-3, imgName.length) == "PNG")

　 {

　 var imgID = (img.id) ? "id='" + img.id + "' " : ""

　 var imgClass = (img.className) ? "class='" + img.className + "' " : ""

　 var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "

　 var imgStyle = "display:inline-block;" + img.style.cssText

　 if (img.align == "left") imgStyle = "float:left;" + imgStyle

　 if (img.align == "right") imgStyle = "float:right;" + imgStyle

　 if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle

　 var strNewHTML = "<span " + imgID + imgClass + imgTitle

　 + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"

　 + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"

　 + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"

　 img.outerHTML = strNewHTML

　 i = i-1

　 };

　};

};


if(navigator.userAgent.indexOf("MSIE")>-1)

{

window.attachEvent("onload", correctPNG);

}; 
</SCRIPT> 

</body> 
</html> 